package com.example.getsystempropdemo;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class GetSystemPropService extends Service {
    private static final String TAG = "GetSystemPropService";

    public GetSystemPropService() {
        super();
        DEBUG("GetSystemPropService");
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        DEBUG("onBind");
        GetSystemPropImpl binder = new GetSystemPropImpl();
        return binder;
    }

    @Override
    public boolean onUnbind(Intent intent) {
        DEBUG("onUnbind");
        return super.onUnbind(intent);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        DEBUG("onCreate");
    }

    @Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
        DEBUG("onStart");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        DEBUG("onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        DEBUG("onDestroy");
    }

    private void DEBUG(String info) {
        Log.d(TAG, info);
    }

}
